import { createNamespacedHelpers } from 'vuex'
import { filter } from 'lodash'

const { mapState } = createNamespacedHelpers('historyVerify')

export default {
  computed: {
    ...mapState(['KXList']),
    showBtn() {
      return this.KXList.length > 0
    },
    showList() {
      return filter(this.toolList, item => {
        return item.active
      })
    }
  },
  methods: {
    handleChangeFunc(val) {
      this.funcToolList[val] && this.funcToolList[val]()
    }
  }
}
